import Vue from 'vue'

import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import './assets/main.css'
// 引入axios
import axios from 'axios';

// 设置axios的默认baseURL
axios.defaults.baseURL = 'http://localhost:8080';

// 将axios添加到Vue原型上
Vue.prototype.$axios = axios;

Vue.use(ElementUI);

new Vue({
  router,
  render: (h) => h(App)
}).$mount('#app')
